# Contributor: Zhuowei Zhang <zhuoweizhang@yahoo.com>
# Maintainer: Luca Weiss <luca@z3ntu.xyz>
pkgname=kmscube
pkgver=0_git20210207
pkgrel=0
_commit="9f63f359fab1b5d8e862508e4e51c9dfe339ccb0"
pkgdesc="Simple demo for testing kernel mode setting support"
url="https://gitlab.freedesktop.org/mesa/kmscube"
arch="all"
license="MIT"
makedepends="libdrm-dev libpng-dev mesa-dev meson"
source="https://gitlab.freedesktop.org/mesa/kmscube/-/archive/$_commit/kmscube-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/kmscube-$_commit"

build() {
	abuild-meson \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="f1af98e60f9d36757e83e6e7a6db5331ab2d487039021dca74da2a020b483ce9c12c2f19a952f5acc0a1851be4821d2393036ebbaea150810ad9ba78e9ef69ea  kmscube-9f63f359fab1b5d8e862508e4e51c9dfe339ccb0.tar.gz"
